package com.leihao.product.domian;

import javax.validation.constraints.NotBlank;

/**
 * 专题实体
 */
public class Subject {
    /**
     * 专题id
     */
    private Integer subjectId;
    /**
     * 专题名称
     */
    @NotBlank(message = "专题名称不能为空")
    private String subjectName;
    /**
     * 推荐状态：0->推荐 1->不推荐
     */
    private Integer recommendStatus;
    /**
     * 排序
     */
    private Integer isSort;
    /**
     * 逻辑删除  0:正常 1:删除
     */
    private Integer isDelete;

    public Subject(Integer subjectId, String subjectName, Integer recommendStatus, Integer isSort, Integer isDelete) {
        this.subjectId = subjectId;
        this.subjectName = subjectName;
        this.recommendStatus = recommendStatus;
        this.isSort = isSort;
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(Integer subjectId) {
        this.subjectId = subjectId;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    public Integer getRecommendStatus() {
        return recommendStatus;
    }

    public void setRecommendStatus(Integer recommendStatus) {
        this.recommendStatus = recommendStatus;
    }

    public Integer getIsSort() {
        return isSort;
    }

    public void setIsSort(Integer isSort) {
        this.isSort = isSort;
    }

    public Subject() {
    }

    public Subject(Integer subjectId, String subjectName, Integer recommendStatus, Integer isSort) {
        this.subjectId = subjectId;
        this.subjectName = subjectName;
        this.recommendStatus = recommendStatus;
        this.isSort = isSort;
    }

    @Override
    public String toString() {
        return "Subject{" +
                "subjectId=" + subjectId +
                ", subjectName='" + subjectName + '\'' +
                ", recommendStatus=" + recommendStatus +
                ", isSort=" + isSort +
                ", isDelete=" + isDelete +
                '}';
    }
}
